package com.yxuan.springboot.util;




//统一结果集中的状态码
public class Code {

    //表示运行成功
    public static final Integer SUCCESSCODE = 200;
    //表示查询所有成功
    public static final Integer SELECTALL_OK = 200;
    //表示查询所有失败
    public static final Integer SELECTALL_NO = 10001;
    //根据主键ID查询成功
    public static final Integer SELECT_BY_PRIMARY_ID_OK = 200;
    //根据主键ID查询失败
    public static final Integer SELECT_BY_PRIMARY_ID_NO = 10003;
    //根据条件（无条件）查询多个结果成功
    public static final Integer SELECT_BY_CONDITION_OK = 200;
    //根据条件（无条件）查询多个结果失败
    public static final Integer SELECT_BY_CONDITION_NO = 10005;
    //加载（分页） 根据是否存在条件加载成功
    public static final Integer SELECT_LIMIT_OK = 200;
    //加载（分页） 根据是否存在条件加载失败
    public static final Integer SELECT_LIMIT_NO = 10007;
    //根据条件查询单个结果成功
    public static final Integer SELECT_SINGLE_BY_CONDITION_OK = 200;
    //根据条件查询单个结果失败
    public static final Integer SELECT_SINGLE_BY_CONDITION_NO = 10009;
    //根据条件获取数据条数成功
    public static final Integer SELECT_DATANUMBER_BY_CONDITION_OK = 200;
    //根据条件获取数据条数失败
    public static final Integer SELECT_DATANUMBER_BY_CONDITION_NO = 10011;
    //根据条件删除成功
    public static final Integer DELETE_BY_CONDITION_OK = 200;
    //根据条件删除失败
    public static final Integer DELETE_BY_CONDITION_NO = 20002;
    //批量删除成功
    public static final Integer BULK_DELETE_OK = 200;
    //批量删除失败
    public static final Integer BULK_DELETE_NO = 20004;
    //添加成功
    public static final Integer SAVE_OK = 200;
    //添加失败
    public static final Integer SAVE_NO = 30002;
    //修改成功
    public static final Integer UPDATE_OK = 200;
    //修改失败
    public static final Integer UPDATE_NO = 40002;
    //操作异常
    public static final Integer ABNORMAL_OPERATION = 50001;
    //token过期
    public static final Integer TOKEN_OUTDATED = 60001;

}
